package com.heihei.entity.usr;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.heihei.entity.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author duanhf
 * @since 2021-12-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_usr_user")
public class UsrUserEntity extends BaseEntity<UsrUserEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账户名")
    private String account;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "手机号前缀（区号等）")
    private String mobilePrefix;

    @ApiModelProperty(value = "固定电话")
    private String telephone;

    @ApiModelProperty(value = "固定电话前缀（区号等）")
    private String telephonePrefix;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "状态（1 正常  0 禁用  ）")
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.getId();
    }

}
